import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isLogin:false,//是否登录，false为未登录
    userInfo:{}//存放用户信息
  },
  getters:{

  },
  mutations: {
    judgeLogin(state,payload){
      console.log(payload.userInfo)
      state.isLogin=payload.isLogin

      state.userInfo=payload.userInfo
    }
  },
  actions: {
  },
  modules: {
  }
})
